package test3_17.Animal2;

public class Homework9_8_Test {
    public static void main(String[] args) {
        Animal a = new Animal();
        a = new Dog();
        a.sing();
        ((Dog)a).call();

        a = new Cat();
        a.sing();
        ((Cat)a).eat();

        a = new Bird();
        a.sing();
        ((Bird)a).fly();
    }
}
